#uses('klib')

class fopen:

    @ld
    def cache(*a,**k):pass

    @ld
    def __init__(*a,**k):pass

    @ld
    def store(*a,**k):pass


    def __bool__(self):
        return self.valid is True

    def readline(self):
        if self:return self.u.readline().decode("utf-8", "ignore")

    def readlines(self):
        if self:
            while True:
                l = self.readline()
                if l: yield l
                else: break

    def read(self):
        if self:
            return self.u.read().decode("utf-8", "ignore")
